//
//  main.cpp
//  SnakeGame
//
//  Created by Hansuck Shim on 2014. 3. 9..
//  Copyright (c) 2014년 Hansuck Shim. All rights reserved.
//

#include "GameBase/GameBase.h"

int main(int argc, const char * argv[])
{
    InitGameBase();

    while( GetGameStatus() != GAME_STATE_STOP )
    {
        UpdateKeyState();
        if( IsTimeToUpdate() == GAME_STATE_UPDATE )
        {
            UpdateGameBase();
            DrawGameBase();
        }
    }
    
    TermGameBase();

    return 0;
}

